import App from './App'
import "@/utils/utils.js"

import uviewPlus from '@/uni_modules/uview-plus'


import {
  createPinia
} from 'pinia'

import {
  createSSRApp
} from 'vue'

import persist from "pinia-plugin-persistedstate";

export function createApp() {
  const app = createSSRApp(App)

  const pinia = createPinia()
  pinia.use(persist)
  app.use(pinia)
  app.use(uviewPlus)

  return {
    app
  }
}